.class public Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;
.super Lcom/estrongs/android/pop/esclasses/ESActivity;
.source "NewFileDailyActivity.java"

# interfaces
.implements Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView$a;


# instance fields
.field private d:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;

.field private e:Landroid/widget/ProgressBar;

.field private f:Landroid/widget/TextView;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/view/View;

.field private i:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyChartView;

.field private j:Landroid/widget/RelativeLayout;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;-><init>()V

    return-void
.end method

.method private A()V
    .locals 2

    .line 1
    invoke-static {}, Lcom/estrongs/android/pop/app/analysis/daily/a;->b()Lcom/estrongs/android/pop/app/analysis/daily/a;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity$b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity$b;-><init>(Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;)V

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/app/analysis/daily/a;->a(Les/qk$d;)V

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->C()V

    return-void
.end method

.method private B()V
    .locals 2

    const v0, 0x7f090289

    .line 1
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->d:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;

    const v0, 0x7f090293

    .line 2
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->e:Landroid/widget/ProgressBar;

    const v0, 0x7f09028c

    .line 3
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->f:Landroid/widget/TextView;

    const-string v1, ""

    .line 4
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f09028e

    .line 5
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->g:Landroid/widget/TextView;

    .line 6
    new-instance v1, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity$a;-><init>(Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f09028a

    .line 7
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->h:Landroid/view/View;

    const/4 v1, 0x4

    .line 8
    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f09028b

    .line 9
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyChartView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->i:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyChartView;

    const v0, 0x7f090839

    .line 10
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->j:Landroid/widget/RelativeLayout;

    return-void
.end method

.method private C()V
    .locals 2

    .line 1
    new-instance v0, Ljava/util/Date;

    invoke-direct {v0}, Ljava/util/Date;-><init>()V

    .line 2
    invoke-static {v0}, Lcom/estrongs/android/pop/app/analysis/daily/a;->a(Ljava/util/Date;)I

    move-result v0

    packed-switch v0, :pswitch_data_0

    goto :goto_0

    .line 3
    :pswitch_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->j:Landroid/widget/RelativeLayout;

    const v1, 0x7f0801fa

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    goto :goto_0

    .line 4
    :pswitch_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->j:Landroid/widget/RelativeLayout;

    const v1, 0x7f0801f9

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    goto :goto_0

    .line 5
    :pswitch_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->j:Landroid/widget/RelativeLayout;

    const v1, 0x7f0801f8

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    goto :goto_0

    .line 6
    :pswitch_3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->j:Landroid/widget/RelativeLayout;

    const v1, 0x7f0801f7

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    goto :goto_0

    .line 7
    :pswitch_4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->j:Landroid/widget/RelativeLayout;

    const v1, 0x7f0801f6

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    goto :goto_0

    .line 8
    :pswitch_5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->j:Landroid/widget/RelativeLayout;

    const v1, 0x7f0801f5

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    goto :goto_0

    .line 9
    :pswitch_6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->j:Landroid/widget/RelativeLayout;

    const v1, 0x7f0801fb

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    :goto_0
    return-void

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_6
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;)Landroid/widget/ProgressBar;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->e:Landroid/widget/ProgressBar;

    return-object p0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;Les/pk;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->c(Les/pk;)V

    return-void
.end method

.method private a(Les/pk;)V
    .locals 5

    .line 3
    iget-boolean v0, p1, Les/pk;->e:Z

    if-eqz v0, :cond_0

    const v0, 0x7f11070e

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    .line 4
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "<font color=\'#f5d762\'>"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 5
    invoke-virtual {p1}, Les/pk;->c()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "</font>"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x1

    invoke-virtual {p1}, Les/pk;->b()Ljava/lang/String;

    move-result-object p1

    aput-object p1, v1, v2

    .line 6
    invoke-virtual {p0, v0, v1}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object p1

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->f:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 8
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->f:Landroid/widget/TextView;

    const v0, 0x7f11070f

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    :goto_0
    return-void
.end method

.method private b(Les/pk;)V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->h:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 2
    iget-boolean v0, p1, Les/pk;->e:Z

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->i:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyChartView;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyChartView;->setMaxSize(I)V

    goto :goto_0

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->i:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyChartView;

    const v2, 0x7f0700c2

    invoke-virtual {v0, v2}, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyChartView;->setMaxSizeRes(I)V

    .line 5
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->i:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyChartView;

    iget-object p1, p1, Les/pk;->b:[F

    invoke-virtual {v0, p1, v1}, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyChartView;->a([FI)V

    return-void
.end method

.method private c(Les/pk;)V
    .locals 1

    .line 1
    invoke-virtual {p1}, Les/pk;->a()Ljava/util/List;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->f(Ljava/util/List;)V

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->b(Les/pk;)V

    .line 3
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->a(Les/pk;)V

    return-void
.end method

.method private f(Ljava/util/List;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/rk;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_1

    .line 1
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->d:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->d:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;->a(Ljava/util/List;)V

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->d:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;

    invoke-virtual {p1, p0}, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;->setOnItemClickListener(Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView$a;)V

    return-void

    .line 5
    :cond_1
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->d:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    return-void
.end method


# virtual methods
.method public a(Les/rk;)V
    .locals 2

    .line 9
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "index = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v1, p1, Les/rk;->c:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "onItemClicked"

    invoke-static {v1, v0}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->i:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyChartView;

    if-eqz v0, :cond_0

    .line 11
    iget p1, p1, Les/rk;->c:I

    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyChartView;->setSelectedIndex(I)V

    :cond_0
    return-void
.end method

.method public onBackPressed()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroidx/activity/ComponentActivity;->onBackPressed()V

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/app/analysis/daily/a;->b()Lcom/estrongs/android/pop/app/analysis/daily/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/analysis/daily/a;->a()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f0c0038

    .line 2
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->setContentView(I)V

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->B()V

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;->A()V

    .line 5
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    const-string v0, "storagedailyrepory_page_show"

    invoke-virtual {p1, v0}, Lcom/estrongs/android/statistics/b;->d(Ljava/lang/String;)V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onDestroy()V

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/app/analysis/daily/a;->b()Lcom/estrongs/android/pop/app/analysis/daily/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/analysis/daily/a;->a()V

    return-void
.end method
